package com.gdit.entity;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDateTime;
import java.io.Serializable;

import com.gdit.comm.enums.IdentityType;
import com.gdit.comm.enums.Sex;
import com.gdit.comm.enums.Status;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 *
 * 学生
 *
 * @author zyy
 * @since 2021-09-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_student")
@ApiModel(value="Student对象", description="")
public class Student implements Serializable {

    private static final long serialVersionUID = 1L;

    private String id;

    @ApiModelProperty(value = "学生号")
    private String sno;

    @ApiModelProperty(value = "学生中文名")
    private String nameCn;

    @ApiModelProperty(value = "外文名")
    private String namePt;

    @ApiModelProperty(value = "学生性别")
    private Sex sex;

    @ApiModelProperty(value = "证件类型")
    private IdentityType identityType;

    @ApiModelProperty(value = "联系电话")
    private String mobile;

    @ApiModelProperty(value = "地址")
    private String address;

    @ApiModelProperty(value = "出生日期")
    private LocalDateTime birthday;

    @ApiModelProperty(value = "身份证号")
    private String identityNo;

    @ApiModelProperty(value = "状态，默认为0，0为正常")
    @TableLogic(value = "0",delval = "1")
    private Status status;

}
